<extend name="./base" />
<block name="pageContent">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/s-settle.css">
    <div class="main-content">
        <!-- 头部面包屑导航条 -->
        <div class="breadcrumbs" id="breadcrumbs">
            <!--导航路径列表-->
            <ul class="breadcrumb no-margin-left">
                <li>
                    <a>管理后台</a>
                </li>
                <li class="action">
                    权限管理
                </li>
            </ul>
        </div>
        <!--页面容器-->
        <div class="page-content">
            <div class="nav-tab" style="position: relative">
                <ul class="nav-tab-title ">
                    <li class="nav-this">编辑管理员</li>
                </ul>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="row">
                        <form class="jsform" method="post" action="{$Think.config.DOMAIN_URL}/power/editMg">
                            <input  name="id" class="form-control" type="hidden" value="{$selfInfo.id}">
                            <input  name="page" class="form-control" type="hidden" value="{$page}">
                            <div class="s_form-textarea">
                                <span>姓名</span>
                                <input type="text" value="{$selfInfo.name}" name="name" class="s_form-width" datatype="*" placeholder="请输入管理账号"/>
                            </div>
                            <div class="s_form-textarea">
                                <span>密码</span>
                                <input type="text" name="passwd" class="s_form-width"  placeholder="请输入管理密码"/>
                            </div>
                            <div class="s_form-radio s_form-edit">
                                <span>选择分组</span>
                                <volist  name="groupData" id="vo">
                                    <label class="radio-inline">
                                        <input type="checkbox" datatype="*" name="groupId[]" value="{$vo.id}" <in name="vo.id" value="$selfInfo.agids">checked</in>> {$vo.name}
                                    </label>
                                </volist>
                            </div>
                            <div style="margin: 50px 80px;">
                                <button type="submit"  class="btn " style="width: 100px; border-radius: 2rem; background: #0451d7!important;border:1px solid #0451d7;margin-left: 20px;">确定</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        $(".jsform").Validform();

    </script>
</block>